<%@ page language="java" import="java.util.*,com.ers.model.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglib.jsp" %>

	<div class="resume-title">
       	教育经历
    </div>
    <div class="resume-edu-exp">
    <div id="NTGUID__5" data-selecter="show_education_exp" data-completed="completed">
    <div id="NTGUID__5NDTGUID__9">
    
   <c:if test="${resume.educationInfo!=null}">  
   <c:forEach var="education" items="${resume.educationInfo }">
	    <div class="resume-complete" id="educationshow">    
	      <dl class="nobd">
	        <dt class="school clearfix">         
	          <strong>${education.university }</strong>（${education.entranceTime}/${education.graduateTime }）
	        </dt>
	        <dd class="detail clearfix">
	          <span>专业名称：${education.major}</span>
	          <span>学历：${education.education }</span>
	          <span>是否统招：是</span>
	        </dd>  
	      </dl>
	      <div style="width:80%">     	
	      		获奖情况：<p>${education.prizeInfo}</p> <br>   	
	      		实践情况：<p>${education.pritaceInfo }</p>
	      </div>
	     </div>
     </c:forEach>
     </c:if>    
     
    <div class="resume-edit" id="educationedit" style="display:none">
    <c:if test="${ resume.educationInfo == null || resume.educationInfo.size()==0}">
	    <form:form action="saveeducation" modelAttribute="education" method="post" > 
	    <input type="hidden" name="id" value="">  
	    <input type="hidden" name="resumeId" value="${resume.id }"> 
	      <fieldset class="clearfix">
	        <label>
	          <span class="label">学校名称</span>
	          <input type="text" class="text span15" name="university" value="">
	        </label>
	      </fieldset>
	      <fieldset class="clearfix">
	        <label>
	          <span class="label">专业名称</span>
	          <input type="text" class="text span15" name="major" value="">
	        </label>
	      </fieldset>
	      <fieldset class="clearfix">
	        <span class="label">就读时间</span>
	        <div class="float-left">          
	          <input type="text" class="text span4" name="entranceTime" value="">                      
	        </div>            
	        <div class="float-left dot">
	          —
	        </div>      
	        <div class="float-left">
	          <input type="text" class="text span4" name="graduateTime" value=""> 
	        </div>
	      </fieldset>
	      
	      <fieldset class="clearfix">
	        <span class="label">学历</span>
	        <div class="float-left">
	          <input type="text" class="text span4" name="education" value=""> 
	        </div>        
	      </fieldset>
	      
	      <fieldset class="clearfix">
	        <span class="label">获奖情况</span>
	        <div class="form-content">
				<textarea name="prizeInfo" cols="60" rows="3" maxlength="1000" ></textarea>			
			</div>
	      </fieldset>
	      
	      <fieldset class="clearfix">
	        <span class="label">实践情况</span>
	        <div class="form-content">
				<textarea name="pritaceInfo" cols="60" rows="3" maxlength="1000"></textarea>
			</div>
	      </fieldset>
	      
	      <fieldset class="text-center btns">
	        <input type="submit" class="btn btn-primary" value="保 存">
	        <a href="javascript:;" onclick="hide('educationedit','educationshow')">取消</a>
	      </fieldset>   
	    </form:form>
    </c:if>
    
    <c:if test="${ resume.educationInfo!=null}">
    <c:forEach var="education" items="${ resume.educationInfo}">
    <form:form action="saveeducation" modelAttribute="education" method="post" > 
    <input type="hidden" name="id" value="${education.id }">  
    <input type="hidden" name="resumeId" value="${resume.id }"> 
      <fieldset class="clearfix">
        <label>
          <span class="label">学校名称</span>
          <input type="text" class="text span15" name="university" value="${education.university }">
        </label>
      </fieldset>
      <fieldset class="clearfix">
        <label>
          <span class="label">专业名称</span>
          <input type="text" class="text span15" name="major" value="${education.major }">
        </label>
      </fieldset>
      <fieldset class="clearfix">
        <span class="label">就读时间</span>
        <div class="float-left">          
          <input type="text" class="text span4" name="entranceTime" value="${education.entranceTime }">                      
        </div>            
        <div class="float-left dot">
          —
        </div>      
        <div class="float-left">
          <input type="text" class="text span4" name="graduateTime" value="${education.graduateTime }"> 
        </div>
      </fieldset>
      
      <fieldset class="clearfix">
        <span class="label">学历</span>
        <div class="float-left">
          <input type="text" class="text span4" name="education" value="${education.education }"> 
        </div>        
      </fieldset>
      
      <fieldset class="clearfix">
        <span class="label">获奖情况</span>
        <div class="form-content">
			<textarea name="prizeInfo" cols="60" rows="3" maxlength="1000" >${education.prizeInfo }</textarea>			
		</div>
      </fieldset>
      
      <fieldset class="clearfix">
        <span class="label">实践情况</span>
        <div class="form-content">
			<textarea name="pritaceInfo" cols="60" rows="3" maxlength="1000">${education.pritaceInfo }</textarea>
		</div>
      </fieldset>
      
      <fieldset class="text-center btns">
        <input type="submit" class="btn btn-primary" value="保 存">
        <a href="javascript:;" onclick="hide('educationedit','educationshow')">取消</a>
      </fieldset>   
    </form:form>
    </c:forEach>
    </c:if>
  </div>
 
    
    <div class="resume-add" >
      <a href="javascript:;" onclick="show('educationedit','educationshow')"><em>修改</em>教育经历</a>
    </div>
  
</div>
</div>
</div>
